replacing an if check
DuncanM test