added flatten list