restoring old color detection