added smoothstep function. trying to debig timeing issues