fix mixed declarations and code
suppress warnings