bf
bf
optimize sweep loop