added subtract dictionary function