processing controller code, proper scheduling