eh già... peccato che non funzioni in entrambi i casi proposti e già testati...