add "typeof" condition for avatars