messing with data structure and rendering different items