scheduler implemented, also much faster!