fix syntax for smooth class