update expen, lost, cost function & json file updated
all function done