refactor sbs