inhomogenous model