adding smooth to layer