remove needless declarations
fix mixed declarations and codes
comment out
add missing declarations
fix mixed declarations and codes