figured out how to use cursor