commenting out check_derivatives