tidied variables in processLoc()