$S is really hard to understand this thing