changed hash map to linkedhashmap