added lindex method