added boundary conditions for all objects