bug preprocessing