fixed Megan logic