add getalias and assignColors function