rewrite code and implanting words