remove unneeded code
enable to log