should have used a map all along