ditty handling