new version of generateSL