added not modified code to metrics tracking