changed hue calcuation back to original