fixed first version smoothing