using correct variable