fixed compiler warnings, removed unused log variables 2