added array stuff