add stack array to queue instead of stackclass