finished plane regression stuff