removed smooth
added model parameter