refactored pad array