revise implementation of mr remove