sementic errors fixed