code from land-use model