added statisc stats and extracted colors to variables