use right index in result