commented code for board