re-introduce reusing of hashmap