fixed typo in parse
fixed incorrect instantiation of writer, method writer() was removed, so use new instead