define basic create-var fn