added global version of local bp