linking and brushing for diagonal implemented