updated register process