testing script for ir