use flatten