refs #42: changed conditional to elif