adding modifications; last chapter and some modification still remain