added size of hashmap to its constructor