adding stuff to periodically executed function call