map replacement working