Improved output and queque
better output
does not work well