rm unneeded vars