code used to experiment for stroboscope functionality