insert method compress