pgain is a macro