added new rule for searching and improved DO removing