use an appropriate cursor