update to regression calc