modification for object extraction