cleaned up comment on replace_loc