change the loc func