remove invisible parts