fixed register logic