work on register process