had to includ lastNode to increase a bit of efficeincy