small boundary fixing