was using wrong size for writes