ensure order of variables