fixed declared and not used