using .flatten hack approach