border correction