removing error log writing