add null to function type