set the correct content type