swapped to r+ and now have correct file size