replace all brush code