inline flatten