add more variance analysis scripting