added register method query