rewrited input