rewrite promocde-input