simplify schedule() function