fixed declaration issue