correct content preprocessing