added AVATAR code