added message error (in build sub parts) and added newton method