working on AllSBs for planning