set value var at function construct to null