added deletion of elements