renamed variables to less confuse