use different colors according to different pattern