astar as B AJac