changed debug conditional