added brush functionality