added array padding methods