debug() fcn added, trails change colour