Change serizlize to dictionary type