code and figures corrected