finished part with regression