add distinct to turn cursor to list