changed array of users to object