removed unnecessary updates
renamed variable