changed contains around, imported atomic package, created hasBeenRemoved member for node