fixed some bone-headed blunders