ordering method to store variable