brush implmentation (partially)