debug next_loc