updated to correct variable