created output var outname for easy mod later