add min turn and whether cross function
add min turn and whether cross function