trying to set function with function