preprocessing