added flatten of a list