part of register code