updated for json program