added data calculations