added after serialize method