corrected semantic issues