added method to set default value, or rather sets value if it's not set.