vars were reversed