replaced findAndModify command with find command