setting defaults for null values