little type error
add simulator for non-preemptive mode