correction to sm working