small changes in recursive Auxiliar function.