refine first in HashMap