working on checking if the pointer has been removed