added ksls derivation