fixed argument error, added default create-fn