boards class and extra space removal