added flat doc