debugging queue by adding console log