use [].flatten instead of Array()