fixed declaration error