add delted column and add condition