added slight error check to getcolor