add tests
fix index access