added getloc