board is not defined fix