moving generation to linkedhashmap