fix log name
remove unneeded code