corrected variable output