deletion functionality implemented