clear_marks(): rewrite to take an object_id argument