mark messing with mitch's code