first half of convert-- find and replace