working on tests
fixed index