insert method compress and  change  date