better design for special boundaries