Front end color algotirm almost complete