source errors fixed