made it a circular queue