revise and update plot4