final answer of remove() function.