Submillimeter spectral line observations in very dense regions