auto generate schedule