rewrited forms to code