split color bug solved first, reset array added, tidyups