it is a circular queue