added array resize