functionality for making avatars added