added defaults for variables