changed objects to tempobj