got the derivative class wrong