border processing