add simple function creator