replaced IRScoreF with a version that looks for 4 and then 5