set border colour based on source block instead of hardcoded