refactor box materials