adding encoding queue