On solar wind interaction with the earth's magnetosphere