tripple func for handling both arrays & objects
asdf