adding rewind and forward function