improve gtdlog snippet