implementing assignment delete operation