implementing periodic bcs with new approach, not yet spheredom