commit 9 : queue is working with edge cases