updated two var equations to display in order