fixed arguments to calculate_derivatives!()