modify preprocess for std basis, s27 for RATO