fixed declaration err