added enableSmooth