formatting content for proper processing