writing check methods for select deletion