clear up the code on schedule and add some base code.
clear up the code.