Added little helper functions
fixed rgb error