changed scheduler to accout for new algorithgm changes