remove some unnecessary applies