gain and offset use default const