assign frames to objects