formatting with correct variable