refactor starbar