refactor scat