added padding code to test for extending the functioin size.