add location info for register