remove const declarations inside functions
implemented RGB type