tried another way of accessing registers