checking if node exists already