delete old code from recurtion