setting up scope and cursor to be separate