added debug message for checking the rewriting nodes