make content dependent on type