use Array() instead of [].flatten hack