speed up the bbs() function greatly by taking the check out of the loop