resolved semantic errors