remove rewind(). it is not used effectively