filling gaps in border