update pointers for function call
correct the logic for dekatron pulse timing