replace location with coordinate