added secondstage plot