delete free space code in scheduler