complete Select and Delete part