delete first, delete last magic methods have been implemented