worked on playback.java