code and ui smoothing