set fucntion