supporting lookup by last value