delete unused local vars