boundaries working correctly