added calculations