added defaults for temp and dens