flatten fopl