global vars sorted