rm duplicate "then"