wrapped debug string concatenations with if check