fixed mass delete implementation