making transition to use json