fixed notation issues with w as words and weights