in for statement add one to length of queuearray