finished first version for content providers