removed segfault-causing differential function