made some changes to remove function and find fucntion

made some changes to remove function and find fucntion