added ttuple statistics calculation support