reduce double division
remove superfluous variable initialization