add register code handle function