trying to find error on index 7 took out formatting