add script for plotting variance