eliminated lag between input and output by introducing a (configurable) refresh rate