let flatten's return include flag