separate function for decoder prediction stats