- var functions to local functions