add register check