realized I dont understand cursors, fixed some bugs, made sense of initialization