made cursor a pointer