being implementing basic functionality for playback loop