adding brush functionality