updated emote function