added broken flight code