solve globals