add borders. fix gaps