changes seralization methode