working preprocessing (minus report)