Smooth and rough er functions