remove some optional variables