set correct content type