set S variable