example for register handling with constants added