some code for remove