refactor emoji determination