difference between a function and a relation.