cleaned up board code