Functions of smooth and rough er