fix undeclared identifier