finish board function.