implemented spherical bcs using new approach