added register feature