flatten operator