how much of this code is new?