implement forward-rewind loop