added register check
register check