find_pos functionality