added transactions stats calculating