added fully safety for memory leaks for Rare crates