variable renaming
slight log improvement