add original Newt code