* tweaked logging and renamed variable