a very beginning version for scheduling