fixed things by using cpp compiler