smoothness cost fix