refactor for sideboard. now for the second part