missed the case of a chain rule