adding remCalc functionaity