changed some log messages and a log code