adding callback
now can change reg while hook