adding get cur_loc function