added array_flip