changed output to use success enum