remove some unnecessary variables