added rmq problem