added array padding solution
not sure whats going on here