changed some code to fix board