localize some more vars