corrected padding error