add delete node method