changed currentNodes to pointers
added remove, needs to be finished