first 2 questions and preprocessing complete