assign fuction added