se ci sei riuscito magari posta il codice che potrebbe aiutare utenti futuri