deleted add logic.