added function for recording objects and markers together