Optimize water color code