finished adding PBCs to the rest of the standard functions