added spacing to calculations to no 3d write version