added a user and improved traversing the user array