grazie a tutti, già finito e pare che funzioni tutto correttamente