forgot to implement register callback method