added a hashmap for storing color conversion