working on using json