nest objects instead of lists