-added definition of smooth