code for board interface