working on refining register process