se potessi postare del codice sarebbe piu facile rispondere