comment flatten method