soldier code errors fixed