fix order of variable