by scanning the object