Errors formating with recursively method