added link and fixed some cowcopy conditions