moving stats calculation temporarily to finall clause
merged in bus development