modifications in the register1 template