made it work, added timer