starbar refactor