changed the compiler to output average decode and corrected stat collection