solve it by BF, good