fix previous commit to write proper type string