implemented client-side brush