use cursor adapter