use other hash and add nil check