updated register check