how to maintain quality of service