remove some unnecessary arguments