add up and stop to json