add replacement logix