add else block with debug message