added clearing queue