slight changes to dither generator