added data members in loop for getAllUsers