added addNode method to Patch