used ```poll()``` instead of ```peekFirst()``` to remove object rather than just retrieve it