revising draft code