removes pdequeue/penqueue as suggested