fixed the print board function