corrected variable declarations