add preprocessing grammar transformation step