function of the state out_of_track