fix compile error
fix incorrect sintax for 'declare'