return -1 when no index found