Replaced ambiguous variable names with meaningful terms. Removed unnecessary variable WW.