added deletion functionality