queue printing dynamically almost working?