now that data is array and not obj