fix code in case consumer doesn't use new