corrected variable reference