ported color calculator to new version