remove some unused variable assignments