crappy pattern finding