use correct cursor