lindex, sum, avg added