override value of undefined via function param