works with static json file
removed nested confusion wisdom