The density profiles of 18 galaxy clusters