improved rgb behaviour