add a declaration and fix