mixed declaration and code