working initial solution to pad array