renamed line to index