using fseek, but not correct