rename register func