The influence of atmospheric waves on the general circulation of the middle atmosphere