moved object extraction to controller