only run deques once