added for plot4