trim debug output, vaverage fixed