fix some more undeclared errors