main.ml fix and default value should work for any function