made rewind() do what I commented it should do