fix declared and not used error