added check links method