flatten form structure