putting in hash for replacement