the function creator works now