ok pattern comparison algo *should* work