adding missing declare statement