change dependency logic