taking insert/remove from if statements