delete old logic