should use gain instead of 500 in supremec.pas. Thanks Rick