added playback functionality