prepare regression