removed auto enum storing in global scope