serer.js updated for fig.4