added register mapping