added array helpers