adding my code for sonar and ir usage