added padarray script