corrected variable instantiation