add a check to an unused function so we don't get unused var build errors

 * quick fix since we are going to refactor to the newer version soon