first commit. completed till color lookup table