refactored getContent to getData