change hashmap to hashtable