deleted old map code that was replaced by hash map