changed the way to handle inline objs