located a bug in remove