wayne, sedgewick implementation