use seek(0)