changed emitting to intervals instead of event based