The competition between energy and entropy makes liquids difficult to model at the molecular level, as there is no idealized "reference state" that can serve as a starting point for tractable theoretical descriptions. Mathematically, there is no small parameter from which one can develop a systematic perturbation theory. This situation contrasts with both gases and solids. For gases, the reference state is the ideal gas, and the density can be used as a small parameter to construct a theory of real (nonideal) gases (see virial expansion). For crystalline solids, the reference state is a perfect crystalline lattice, and possible small parameters are thermal motions and lattice defects.