working on JSON representation