add lines in index