q2: clear input data for reduced memory usage