wrote stage_next_hit function.  need to straighten out fnc signatures to get it to compile