converted the string storage to serialized array and updated the code accordingly