removing execute function and replacing it with a cursor function