spot detection color refactor