resolved warnings related to cursor