add rgb detection and compelte setting but it has a little problem