add regression code