return array as other list function
Merge pull request #406 from exzz/fix_flavor

return array as other list function