adding in fixing of the paddedSize