create a value if no passed
Merge pull request #2 from Philmod/autovalue

create a value if no passed