forgot to make cursor public