equal function/ definition comleted