replace location with number