made correction to function where mub and muc were confused