added freeLoc functions