implemented findAndRemove and findAndModify