solves remove problem