replaced scheduler run statement