fixed the method remove