refactor sprite bars