before changing based on new pdf
error converging toward 0