removing unnecessary flags