changed line to index