add ierarhy of users and arraylist