working SIN derivation