added array support