preparing for preprocessing stage