improved the improvment of getTone()... (at least I tryed), compiles but not tested