adding Preprocessing functions