added global variables for ice modes