change idle_min to float