fixing seralization