fix reading formatting