support for index comparision