add debug message to BOW extraction