simpler condition as proposed by ceebo