localize some vars