fixed content replace
removed debug prints