Before changing algoritm of saving