remove some locals