add a method to removecond