how does sem work