missing sqrt on sample S