added marshaling to string or integer