back to old color algorithm