added IR tracking fcn