move the line fitting code