made cursor a pointer when appropriate