more work on var and parameters