add warning to salt function