corrected variable types