added logic to handle relational data
idk