added pad array to prep