fixing bo detection