added choice for pbc or obc