added defaults for inputs