removed log writing