satisfy all tests with hardcoded indices; must refactor to make method dynamic