double the function, double the error