improvement on deleted and renamed files