renamed hash to hashmap to remove collision
[] method