code redesign