changed structure. Added .rgb input