regression completed
added calculateerror