added a find and replace method