alla fine ho fatto un foreach. va beh grazie a tutti