support lo and hi functions with index parameter