all code mworking for script, and making plots