fixed initialization/declaration issue