add null option to functions