let not overlap the borders