updating calculator