added a toString and fixed deletion