fixed unused function link
make spotless more spotless