add functionality of an original index to allow for multiple lines with
same values