fixed smeantic errors