adding raf and timer