reordered passing variables