adding calculations