added ends to links