hex bg, refactor