adding register logic