initialize vars with null instead of undefined