optimize the save effect