implemented queue and naming