added register tracking