making envelope plot
wrote envelope section