correction on KMS used