amended mg-class to an expression